<?php
namespace application\admin\controller;
use application\admin\model\AuthRule;

class Rule extends Base
{

    // 权限列表
    public function lists()
    {
        $mRule = new AuthRule();
        $list = $mRule->getList();
        
        $this->assign('list', $list);
        return $this->fetch();
    }

    // 添加权限
    public function add()
    {
        if( $this->request->isPost() )
        {

        }else{
            return $this->fetch();
        }
    }
    
    // 修改权限
    public function edit()
    {
        if( $this->request->isPost() )
        {

        }else{
            return $this->fetch();
        }
    }
    
}